/*
 * @Description:
 * @Author: 稽辉
 * @Date: 2025-01-28 18:55:24
 * @LastEditTime: 2025-03-10 14:46:18
 * @LastEditors: 稽辉
 */
import type { LoginResult } from '@/types/member'
import { http } from '@/utils/http'

type LoginParams = {
  code: string
  encryptedData: string
  iv: string
}
export const postLoginWeixinAPI = (data: LoginParams) => {
  return http<LoginResult>({
    method: 'POST',
    url: '/login/wxMin',
    data,
  })
}
//模拟快捷登录
export const postLoginWeixinSimpleAPI = (requetCode: string) => {
  return http<LoginResult>({
    method: 'POST',
    url: '/users/login',
    data: {
      code: requetCode,
    },
  })
}
